//
//  SLChatBaseCell.m
//  MyChatDemo
//
//  Created by DragonYao on 2017/9/29.
//  Copyright © 2017年 DragonYao. All rights reserved.
//

#import "SLChatBaseCell.h"

@interface SLChatBaseCell ()

@end

@implementation SLChatBaseCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //header image
        self.headImgView = [UIImageView new];
        self.headImgView.layer.cornerRadius = 5.0;
        self.headImgView.layer.masksToBounds = YES;
        self.headImgView.layer.borderWidth = 1.0;
        self.headImgView.layer.borderColor = SLColor(247, 247, 247, 1).CGColor;
        self.headImgView.userInteractionEnabled = YES;
        UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showHeadImage:)];
        [self.headImgView addGestureRecognizer:tapGesture];
        [self.contentView addSubview:self.headImgView];
        
        //文字背景
        self.bgImgView = [UIImageView new];
        [self.contentView addSubview:self.bgImgView];
        //昵称
        self.nicknameLabel = [UILabel new];
        self.nicknameLabel.font = [UIFont systemFontOfSize:11.0];
        self.nicknameLabel.textColor = SLColor(153, 153, 153, 1);
        [self.contentView addSubview:self.nicknameLabel];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)showHeadImage:(UITapGestureRecognizer *)tap {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
